package cn.iocoder.yudao.module.pickbook.controller.admin.user.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 用户 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PickUserRespVO {

    @Schema(description = "用户唯一ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15672")
    @ExcelProperty("用户唯一ID")
    private Long id;

    @Schema(description = "微信OpenID", example = "29604")
    @ExcelProperty("微信OpenID")
    private String openid;

    @Schema(description = "微信UnionID", example = "19716")
    @ExcelProperty("微信UnionID")
    private String unionid;

    @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("用户昵称")
    private String nickname;

    @Schema(description = "用户角色", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "用户角色", converter = DictConvert.class)
    @DictFormat("pickbook_user_role") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String role;

    @Schema(description = "用户状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "用户状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "会员状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "会员状态", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean isMember;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "通知开关（默认开启）")
    @ExcelProperty(value = "通知开关（默认开启）", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer notification;

    @Schema(description = "播放设置")
    @ExcelProperty(value = "播放设置", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer autoPlay;

}